package com.gds.wiki.cloud.admin.client.sys.hystrix;

import com.gds.wiki.cloud.admin.client.sys.api.ResourceApi;
import com.gds.wiki.cloud.admin.client.sys.vo.vue.MenuVo;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


@Component
public class ResouceApiFallbackFactory implements FallbackFactory<ResourceApi> {

    public ResourceApi create(Throwable throwable) {
        return new ResourceApi() {
            @Override
            public List<Map> findUserResourceByUid(Long uid) {
                return null;
            }

            public List<MenuVo> getMenu(Long uid) {
                return null;
            }
        };
    }
}

